From: Jonas Dreßler Date: Thu, 15 Oct 2020 15:00:16 +0000 (+0200) Subject: st/widget: Switch to the new API to get actor from inputdevice X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~667 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fc1d1e536287b6e604dbcc38fc58c0474631b618;p=gnome-shell.git st/widget: Switch to the new API to get actor from inputdevice clutter_input_device_get_actor() was removed in favour of clutter_stage_get_device_actor(), so use that. Part-of: --- diff --git a/src/st/st-widget.c b/src/st/st-widget.c index bfce54572..2ee74af08 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -1865,12 +1865,17 @@ void st_widget_sync_hover (StWidget *widget) { ClutterInputDevice *pointer; + ClutterActor *stage; ClutterActor *pointer_actor; ClutterSeat *seat; seat = clutter_backend_get_default_seat (clutter_get_default_backend ()); pointer = clutter_seat_get_pointer (seat); - pointer_actor = clutter_input_device_get_actor (pointer, NULL); + stage = clutter_actor_get_stage (CLUTTER_ACTOR (widget)); + if (!stage) + return; + + pointer_actor = clutter_stage_get_device_actor (CLUTTER_STAGE (stage), pointer, NULL); if (pointer_actor && clutter_actor_get_reactive (CLUTTER_ACTOR (widget))) st_widget_set_hover (widget, clutter_actor_contains (CLUTTER_ACTOR (widget), pointer_actor)); else